//
//  ViewController.m
//  汇率换算
//
//  Created by king on 15/11/25.
//  Copyright © 2015年 king. All rights reserved.
//

#import "ViewController.h"
#import "ExchangeRateTableViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor redColor];
    
//    NSString *httpUrl = @"http://openapi.baidu.com/public/2.0/bmt/translate?client_id=XZAECGTq4xNZyfoRvPnGsoWd&q=today%0Atomorrow&from=auto&to=auto";
//    NSString *httpArg = @"";
//    [self request: httpUrl withHttpArg: httpArg];

    NSLog(@"%@", NSHomeDirectory());
//    self.view.backgroundColor = [UIColo]
    [self netWroking];
    
    
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    button.frame = CGRectMake(100, 100, 100, 100);
    [button setTitle:@"asd" forState:UIControlStateNormal];
    [self.view addSubview:button];
    [button addTarget:self action:@selector(all:) forControlEvents:UIControlEventTouchUpInside];
}

- (void)all:(UIButton *)a {
    ExchangeRateTableViewController *aa = [[ExchangeRateTableViewController alloc] init];
    [self.navigationController pushViewController:aa animated:YES];
}
- (void)netWroking {
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
